x86 mm: free p2m pages to the shadow/hap pool.
authorTim Deegan <Tim.Deegan@citrix.com>
Fri, 1 Oct 2010 10:57:53 +0000 (11:57 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Fri, 1 Oct 2010 10:57:53 +0000 (11:57 +0100)
commitc6bdbe5636272b029cb88bf7b2248613bb176048
tree55e05126ffc9876bb23baed79472d274bdc3afa4
parent3527a9f3a8b76950ecb05c005dc6d4290b7bbf93
x86 mm: free p2m pages to the shadow/hap pool.

This allows the p2m code to dynamically free and reallocate memory
rather than just freeing everything once at domain teardown.
The previous mechanism (allocating p2m pages from shadow/hap
memory but freeing them directly to the domheap) was a relic
of the original shadow2's rather complex pool code.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/shadow/common.c